﻿using iService.BASE;
using swiftCode.Bbs.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace iService
{
    public interface IModuleService : IBaseServices<Module>
    {
        Task<List<Module>> GetAllModules();
        Task<Module> AddNewModule(Module module, bool autoSave = false);
        Task DeleteModule(Expression<Func<Module, bool>> expression, bool autoSave = false);
        Task<Module> FindModule(Expression<Func<Module, bool>> expression);
        Task<Module> UpdateModule(Module module, bool autoSave = false);
        Task<Module> GetModule(Expression<Func<Module, bool>> expression);
    }
}
